package com.neko.seed.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.neko.seed.api.entity.BasePo;
import com.neko.seed.api.enums.*;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 组织架构表
 * </p>
 *
 * @author Holly Liu
 * @since 2022-04-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_organization")
@ApiModel(value="Organization对象", description="组织架构表")
public class Organization extends BasePo {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "上级ID")
    private String parentId;

    @ApiModelProperty(value = "组织名称")
    private String name;

    @ApiModelProperty(value = "类型，0-公司 1-部门")
    private OrgType type;

    @ApiModelProperty(value = "状态， 0-禁用 1-启用")
    private Switch status;


}
